package com.zzu.model.bean;


public class User {

    private String id = "111";
    private String password;
    private String name;
    private Integer role;
    private Integer status;
    private String tel;
    private String transNodeId="10501";

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getTransNodeId() {
        return transNodeId;
    }

    public void setTransNodeId(String transNodeId) {
        this.transNodeId = transNodeId;
    }

    public User() {
    }

    public User(String tel,String name,String password){
        this.id = "";
        this.tel = tel;
        this.name = name;
        this.password = password;
        this.role = 1;
        this.status = 0;//status为0表示未登录
        this.transNodeId = "";
    }

    public User(String id, String password, String name, int role, int status, String tel, String transNodeId) {
        this.password = password;
        this.name = name;
        this.role = role;
        this.status = status;
        this.tel = tel;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", role=" + role +
                ", status=" + status +
                ", tel='" + tel + '\'' +
                ", transNodeId=" + transNodeId +
                '}';
    }
}
